package cn.com.doone.common.uc.service;

import java.util.Map;

import cn.com.doone.common.uc.service.dto.UserGroup;
import cn.com.doone.common.uc.service.dto.UserGroupMember;
import cn.com.doone.common.uc.service.dto.UserInfo;

public interface IRegisterService {
	
	/**
	 * 用户名是否存在
	 * 
	 * @param userAccount
	 * @return
	 */
	public boolean validUsername(String userAccount);
	
	/**
	 * 弱密码验证
	 * 
	 * @param password
	 * @return
	 */
	public boolean validPassword(String password);
	
	public void addUser(UserInfo userInfo, String tenantCode) throws Exception;
	
	public void removeUser(String userAccount) throws Exception;
	
	public String resetPassword(String userAccount);
	
	public boolean validTenantCode(String tenantCode);
	
	public void addTenant(UserGroup userGroup);
	
	public void updateTenant(UserGroup userGroup) throws Exception;
	
	public String registerUser(UserInfo userInfo, String tenantName) throws Exception;
	
	public void addUserGroupMember(UserGroupMember userGroupMember);
	
	public int findGroupIdByTenantCode(String tenantCode);
	
	public void inviteUser(UserInfo userInfo, String tenantCode) throws Exception;
	
	public void syncUser() throws Exception;
	

}
